<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>默认功能的富文本编辑器</title>
<link href="../../css/bootstrap3.css" rel="stylesheet" media="screen">
<link href="../../css/font-awesome.css" rel="stylesheet">
<link href="../../css/koala_richeditor.css" rel="stylesheet">  

<script src="../../js/jquery.js" type="text/javascript"></script>
<script src="../../js/bootstrap3.js" type="text/javascript"></script>
<script src="../../lib/Koala_RichTextEditor.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$("#editor").richtexteditor({
		showJustfyCtrls:false,
		showRedoCtrls:false,
	});
});
</script>
</head>
<body>
<p></p>
<p></p>
<div class="container">
    <!-- <div data-target="#editor" data-role="editor-toolbar" class="btn-toolbar">
      <div class="btn-group">
        <a title="字体" data-toggle="dropdown" class="btn btn-default dropdown-toggle"><i class="icon-font"></i><b class="caret"></b></a>
          <ul class="dropdown-menu">
          <li><a style="font-family:'SimSun'" data-edit="fontName SimSun">宋体</a></li>
          <li><a style="font-family:'FangSong_GB2312'" data-edit="fontName FangSong_GB2312">仿宋体</a></li>
          <li><a style="font-family:'SimHei'" data-edit="fontName SimHei">黑体</a></li>
          <li><a style="font-family:'KaiTi_GB2312'" data-edit="fontName KaiTi_GB2312">楷体</a></li>
          <li><a style="font-family:'Microsoft YaHei'" data-edit="fontName Microsoft YaHei">微软雅黑</a></li>
          <li><a style="font-family:'幼圆'" data-edit="fontName 幼圆">幼圆</a></li>
          <li><a style="font-family:'Times'" data-edit="fontName Times">Times</a></li>
          <li><a style="font-family:'Times New Roman'" data-edit="fontName Times New Roman">Times New Roman</a></li>
          <li><a style="font-family:'Verdana'" data-edit="fontName Verdana">Verdana</a></li>
          </ul>
        </div>
      <div class="btn-group">
        <a title="" data-toggle="dropdown" class="btn btn-default dropdown-toggle" data-original-title="Font Size"><i class="icon-text-height"></i>&nbsp;<b class="caret"></b></a>
          <ul class="dropdown-menu">
          <li><a data-edit="fontSize 5"><font size="5">Huge</font></a></li>
          <li><a data-edit="fontSize 3"><font size="3">Normal</font></a></li>
          <li><a data-edit="fontSize 1"><font size="1">Small</font></a></li>
          </ul>
      </div>
      <div class="btn-group">
        <a title="" data-edit="bold" class="btn btn-default" data-original-title="Bold (Ctrl/Cmd+B)"><i class="icon-bold"></i></a>
        <a title="" data-edit="italic" class="btn btn-default" data-original-title="Italic (Ctrl/Cmd+I)"><i class="icon-italic"></i></a>
        <a title="" data-edit="strikethrough" class="btn btn-default" data-original-title="Strikethrough"><i class="icon-strikethrough"></i></a>
        <a title="" data-edit="underline" class="btn btn-default" data-original-title="Underline (Ctrl/Cmd+U)"><i class="icon-underline"></i></a>
      </div>
      <div class="btn-group">
        <a title="" data-edit="insertunorderedlist" class="btn btn-default" data-original-title="Bullet list"><i class="icon-list-ul"></i></a>
        <a title="" data-edit="insertorderedlist" class="btn btn-default" data-original-title="Number list"><i class="icon-list-ol"></i></a>
        <a title="" data-edit="outdent" class="btn btn-default" data-original-title="Reduce indent (Shift+Tab)"><i class="icon-indent-left"></i></a>
        <a title="" data-edit="indent" class="btn btn-default" data-original-title="Indent (Tab)"><i class="icon-indent-right"></i></a>
      </div>
      <div class="btn-group">
        <a title="" data-edit="justifyleft" class="btn btn-default" data-original-title="Align Left (Ctrl/Cmd+L)"><i class="icon-align-left"></i></a>
        <a title="" data-edit="justifycenter" class="btn btn-default" data-original-title="Center (Ctrl/Cmd+E)"><i class="icon-align-center"></i></a>
        <a title="" data-edit="justifyright" class="btn btn-default" data-original-title="Align Right (Ctrl/Cmd+R)"><i class="icon-align-right"></i></a>
        <a title="" data-edit="justifyfull" class="btn btn-default" data-original-title="Justify (Ctrl/Cmd+J)"><i class="icon-align-justify"></i></a>
      </div>
      <div class="btn-group">
		  <a title="" data-toggle="dropdown" class="btn btn-default dropdown-toggle" data-original-title="Hyperlink"><i class="icon-link"></i></a>
		    <div class="dropdown-menu input-append">
			    <input type="text" data-edit="createLink" placeholder="URL" class="span2">
			    <button type="button" class="btn btn-default">Add</button>
        </div>
        <a title="" data-edit="unlink" class="btn btn-default" data-original-title="Remove Hyperlink"><i class="icon-cut"></i></a>

      </div>
      
      <div class="btn-group">
        <a id="pictureBtn" title="" class="btn btn-default" data-original-title="Insert picture (or just drag &amp; drop)"><i class="icon-picture"></i></a>
        <input type="file" data-edit="insertImage" data-target="#pictureBtn" data-role="magic-overlay" style="opacity: 0; position: absolute; top: 0px; left: 0px; width: 39px; height: 30px;">
      </div>
      <div class="btn-group">
        <a title="" data-edit="undo" class="btn btn-default" data-original-title="Undo (Ctrl/Cmd+Z)"><i class="icon-undo"></i></a>
        <a title="" data-edit="redo" class="btn btn-default" data-original-title="Redo (Ctrl/Cmd+Y)"><i class="icon-repeat"></i></a>
      </div>
      <input type="text" x-webkit-speech="" id="voiceBtn" data-edit="inserttext" style="display: none;">
    </div> -->

    <div contenteditable="true" id="editor"></div>
  </div>

</body>
</html>